package com.crm.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.crm.base.PageResult;
import com.crm.base.UserVo;
import com.crm.domain.dto.UserDto;
import com.crm.domain.entity.User;

import java.util.List;


public interface UserManagementService extends IService<User> {

    /**
     * 分页查询用户
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageResult<User> getPagedUsers(Integer pageNum, Integer pageSize);

    UserVo createUser(UserDto userDto);

    List<User> findUsersByDeptId(Long deptId);

}
